package gaml.text.printer;

import gaml.core.GamlConfig;
import gaml.error.GamlException;
import gaml.text.YamlLine;
import gaml.text.YamlNodePrinter;
import gaml.text.YamlText;
import gaml.yaml.EmptyNode;


/**
 * text representation for empty node
 * @author shnireck_vi
 * 
 */
public class EmptyNodePrinter implements YamlNodePrinter <EmptyNode> {
	GamlConfig config = null;
	
	public EmptyNodePrinter (GamlConfig config) { this.config = config; }

	@Override
	public Class <EmptyNode> getPrintNodeClass () { return EmptyNode.class; }

	@Override
	public YamlNodePrinter <EmptyNode> print (EmptyNode node, YamlText text) throws GamlException { text.addLine (new YamlLine ()); return this; }
}
